﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Wms.Manager.Common.ExtendAttribute;

namespace Wms.Manager.Wms.InventoryManagements.Dtos
{
    public class InventoryManagementImportExportDto
    {
        [ExcelColumn("存货名称", 1, Required = true,Width =100)]
        [Required(ErrorMessage = "存货名称不能为空")]
        [StringLength(50, ErrorMessage = "存货名称长度不能超过50个字符")]
        public string InventoryName { get; set; }

        [ExcelColumn("现存数量", 2, Required = true, Width = 200)]
        [Range(0, int.MaxValue, ErrorMessage = "现存数量必须大于等于0")]
        public int CurrentQuantity { get; set; }

        [ExcelColumn("批次号", 3, Required = true, Width = 200)]
        [Required(ErrorMessage = "批次号不能为空")]
        [StringLength(200, ErrorMessage = "批次号长度不能超过200个字符")]
        public string BatchNumber { get; set; }

        [ExcelColumn("货位名称", 4, Required = true, Width = 200)]
        [Required(ErrorMessage = "货位名称不能为空")]
        [StringLength(200, ErrorMessage = "货位名称长度不能超过200个字符")]
        public string LocationName { get; set; }


        [ExcelColumn("备注", 6, Width =500)]
        [StringLength(500, ErrorMessage = "备注长度不能超过500个字符")]
        public string Remark { get; set; }
    }
}
